/*
 * @Author: cl
 * @Description: 中间件
 * @Date: 2023-04-10 11:34:12
 * @LastEditTime: 2023-04-10 15:54:41
 * @FilePath: \jsnode\nestjs\naota\src\loger\loger.middleware.ts
 * @LastEditors: cl
 */
import { Injectable, NestMiddleware } from '@nestjs/common'
import { Request, Response, NextFunction } from 'express'
@Injectable()
export class LogerMiddleware implements NestMiddleware {
  use(req: Request, res: Response, next: NextFunction) {
    console.log('中间件')

    // res.send('我跳出来')

    next()
  }
}
